#ifndef __GLOBAL4THIS_H__
#define __GLOBAL4THIS_H__
//#include <reg52.h>
#include <mcs51reg.h>
#define sbit __sbit
#define bit __bit
#define interrupt __interrupt
/*
//sbit P3_0 = P3 ^ 0;
//sbit P3_1 = P3 ^ 1;
//sbit P3_2 = P3 ^ 2;
//sbit P3_3 = P3 ^ 3;
sbit COM1 = P0 ^ 1;
sbit COM2 = P0 ^ 2;
sbit SegA = P2 ^ 0;
sbit SegB = P2 ^ 1;
sbit SegC = P2 ^ 2;
sbit SegD = P2 ^ 3;
sbit SegE = P2 ^ 4;
sbit SegF = P2 ^ 5;
sbit SegG = P2 ^ 6;
*/

#define COM1 P0_1
#define COM2 P0_2
#define SegA P2_0
#define SegB P2_1
#define SegC P2_2
#define SegD P2_3
#define SegE P2_4
#define SegF P2_5
#define SegG P2_6


//sbit P1_7=P1^7;


extern bit beepEn;
extern unsigned int gBeepDelayTime;




extern bit mainLoopTimeFlag;
extern unsigned char showChar1;
extern unsigned char showChar2;

#endif
